import React from 'react'
// 导入搜索框组件
import SearchHeader from '../../components/SearchHeader'
import { Flex } from 'antd-mobile'
import styles from './index.module.css'

export default class HouseList extends React.Component {
  state = {
    // 获取当前定位城市信息
    cityName: JSON.parse(localStorage.getItem('hkzf_city')).label
  }
  render () {
    return (
      <div className={styles.root}>
        {/* 顶部搜索导航 */}
        <Flex className={styles.header}>
          <i
            className="iconfont icon-back"
            onClick={() => this.props.history.go(-1)}
          />
          <SearchHeader cityName={this.state.cityName} className={styles.searchHeader} />
        </Flex>
      </div>
    )
  }
}